﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Afru;
using Afru.Components.Messaging;

namespace Afru
{
    public delegate void MessageReceivedEventHandler(AMessage Message);

    public class Messaging
    {
        #region Variables
        public event MessageReceivedEventHandler MessageHandler;

        #endregion

        #region Constructor

        public Messaging()
        {
            
        }

        #endregion

        #region Class functions
        public void Send(AMessage Message)
        {
            if (MessageHandler != null)
            {
                MessageHandler(Message);
            }
        }
        #endregion

        #region Overridden functions



        #endregion
    }
}
